import request from "../../request";
import { type R, type DeepRequired } from "../../interface";
import { type AxiosRequestConfig } from "axios";

/**
 * 根据 ID 获取 IpTable 信息
 * /ipTable/{id}
 */
export function getIpTableById(params: GetIpTableByIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<R>>(`/ipTable/${params.id}`, config);
}

export interface GetIpTableByIdParams {
    id: number;
}
